<?php
namespace app\index\controller;
use app\superclass\controller\SuperClass;
use \think\Session;
class Index extends SuperClass
{
    public function __construct()
    {
        $user_info = Session::get('user_info');
		if(empty($user_info))
		{
		    $this->error('请先登录','login/Login/index');
		}
    }
    public function index()
    {
        
    }
    
    public function testfunc()
    {
        Session::set('name','hhh');
        
    }
	
}
